package com.ccq.farm.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.ccq.farm.mapper.OauthPermissionMapper;
import com.ccq.farm.model.OauthPermission;
import com.ccq.farm.service.OauthPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Set;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 陈超旗
 * @since 2018-06-30
 */
@Service
public class OauthPermissionServiceImpl extends ServiceImpl<OauthPermissionMapper, OauthPermission> implements OauthPermissionService {


    @Autowired
    private OauthPermissionMapper oauthPermissionMapper;

    @Override
    public Set<String> findPerByName(String userName, String module) {

        return oauthPermissionMapper.findPerByName(userName,module);
    }
}
